﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _16_C_中的重载和覆写
{
    internal class TestLoad
    {
        public void Show() { Console.WriteLine("无参方法"); }

        public void Show(string name) { Console.WriteLine("一个参方法"); }

        public void Show(int age) { Console.WriteLine("一个参方法"); }

        public void Show(string name,int age) { Console.WriteLine("两个参方法"); }

        public void Show(int age, string name) { Console.WriteLine("两个位置不同参方法"); }

        public void Show<T>(int age, string name) { Console.WriteLine("泛型"); }
    }
}
